.class public Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;
.super Lcom/glympse/android/glympseservice/NotificationList$NotificationBase;
.source "NotificationList.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympseservice/NotificationList;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4
    name = "NotificationArrived"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympseservice/NotificationList;


# direct methods
.method private constructor <init>(Lcom/glympse/android/glympseservice/NotificationList;JJ)V
    .locals 7
    .parameter
    .parameter "lTicketId"
    .parameter "lSystemTime"

    .prologue
    .line 542
    iput-object p1, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->this$0:Lcom/glympse/android/glympseservice/NotificationList;

    .line 485
    const/4 v3, 0x0

    invoke-direct {p0, p1, p2, p3, v3}, Lcom/glympse/android/glympseservice/NotificationList$NotificationBase;-><init>(Lcom/glympse/android/glympseservice/NotificationList;JLcom/glympse/android/glympseservice/NotificationList$NotificationBase;)V

    .line 490
    :try_start_0
    const-string v3, "Glympse: Arrived at destination"

    iput-object v3, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->tickerText:Ljava/lang/CharSequence;

    .line 493
    const v3, 0x7f020089

    iput v3, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->icon:I

    .line 496
    iput-wide p4, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->when:J

    .line 499
    iget v3, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->flags:I

    or-int/lit8 v3, v3, 0x18

    iput v3, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->flags:I

    .line 501
    iget v3, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->defaults:I

    or-int/lit8 v3, v3, 0x4

    iput v3, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->defaults:I

    .line 514
    new-instance v2, Landroid/content/Intent;

    sget-object v3, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    const-class v4, Lcom/glympse/android/glympseservice/GlympseService;

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 515
    .local v2, oIntentExpire:Landroid/content/Intent;
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "GLYMPSE_ACTION,type:expire,tid:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ",nid:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget v4, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->m_nId:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 516
    sget-object v3, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-static {v3, v4, v2, v5}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v3

    iput-object v3, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->contentIntent:Landroid/app/PendingIntent;

    .line 519
    new-instance v1, Landroid/content/Intent;

    sget-object v3, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    const-class v4, Lcom/glympse/android/glympseservice/GlympseService;

    invoke-direct {v1, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 520
    .local v1, oIntentClear:Landroid/content/Intent;
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "GLYMPSE_ACTION,type:clear,tid:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ",nid:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget v4, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->m_nId:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 521
    sget-object v3, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-static {v3, v4, v1, v5}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v3

    iput-object v3, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->deleteIntent:Landroid/app/PendingIntent;

    .line 524
    sget-object v3, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    iget-object v4, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->tickerText:Ljava/lang/CharSequence;

    const-string v5, "Click here to expire your Glympse"

    iget-object v6, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->contentIntent:Landroid/app/PendingIntent;

    invoke-virtual {p0, v3, v4, v5, v6}, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V

    .line 527
    const/16 v3, 0x8

    new-array v3, v3, [J

    const/4 v4, 0x1

    const-wide/16 v5, 0x32

    aput-wide v5, v3, v4

    const/4 v4, 0x2

    const-wide/16 v5, 0x1e

    aput-wide v5, v3, v4

    const/4 v4, 0x3

    const-wide/16 v5, 0x32

    aput-wide v5, v3, v4

    const/4 v4, 0x4

    const-wide/16 v5, 0x46

    aput-wide v5, v3, v4

    const/4 v4, 0x5

    const-wide/16 v5, 0x32

    aput-wide v5, v3, v4

    const/4 v4, 0x6

    const-wide/16 v5, 0x1e

    aput-wide v5, v3, v4

    const/4 v4, 0x7

    const-wide/16 v5, 0x32

    aput-wide v5, v3, v4

    iput-object v3, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->vibrate:[J

    .line 530
    const-string v3, "android.resource://com.glympse.android.glympse/raw/arrival"

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    iput-object v3, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->sound:Landroid/net/Uri;

    .line 533
    invoke-virtual {p1}, Lcom/glympse/android/glympseservice/NotificationList;->GetNotificationManager()Landroid/app/NotificationManager;

    move-result-object v3

    iget v4, p0, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;->m_nId:I

    invoke-virtual {v3, v4, p0}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    .line 536
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v3

    invoke-virtual {v3}, Lcom/glympse/platform/Platform;->ShowArrivalNotification()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 540
    .end local v1           #oIntentClear:Landroid/content/Intent;
    .end local v2           #oIntentExpire:Landroid/content/Intent;
    :goto_0
    return-void

    .line 538
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 540
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method synthetic constructor <init>(Lcom/glympse/android/glympseservice/NotificationList;JJLcom/glympse/android/glympseservice/NotificationList$NotificationArrived;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 483
    invoke-direct/range {p0 .. p5}, Lcom/glympse/android/glympseservice/NotificationList$NotificationArrived;-><init>(Lcom/glympse/android/glympseservice/NotificationList;JJ)V

    return-void
.end method
